package sharewithus.analyzer.utils;

import java.io.Serializable;


@SuppressWarnings("serial")
public class TSTNode<D> implements Serializable{
	protected TSTNode<D> left;
	protected TSTNode<D> mid;
	protected TSTNode<D> right;

	public char splitChar;
	protected D data; // 节点中存储的值类型不固定

	public TSTNode(char key) {
		this.splitChar = key;
	}

	public String toString() {
		return "spliter是" + splitChar;
	}

	public D getData() {
		return data;
	}

	public void setData(D data) {
		this.data = data;
	}

}
